package com.qyhl.module_practice.rank.person;


import com.qyhl.webtv.commonlib.entity.civilized.PracticeIsVolunteerBean;
import com.qyhl.webtv.commonlib.entity.civilized.PracticeVolunteerBean;
import com.qyhl.webtv.commonlib.entity.civilized.PracticeVolunteerDetailBean;

import java.util.List;

public class PracticeScoreRankPresenter implements PracticeScoreRankContract.PracticeScoreRankPresenter {
    private PracticeScoreRankContract.PracticeScoreRankView mView;
    private PracticeScoreRankModel mModel;

    PracticeScoreRankPresenter(PracticeScoreRankContract.PracticeScoreRankView mView) {
        this.mView = mView;
        this.mModel = new PracticeScoreRankModel(this);
    }

    @Override
    public void getList(String page, int type) {
        mModel.getList(page, type);
    }

    @Override
    public void getDetail(String volId) {
        mModel.getDetail(volId);
    }

    @Override
    public void getIsVolunteer(String phone) {
        mModel.getIsVolunteer(phone);
    }

    @Override
    public void setDetail(PracticeVolunteerDetailBean bean) {
        mView.setDetail(bean);
    }

    @Override
    public void setIsVolunteer(PracticeIsVolunteerBean bean) {
        mView.setIsVolunteer(bean);
    }

    @Override
    public void setList(List<PracticeVolunteerBean> beanList, boolean isMore) {
        mView.setList(beanList, isMore);
    }

    @Override
    public void setError(String msg, boolean isMore) {

    }
}
